package com.ruoyi.mall.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 退货对象 order_return
 * 
 * @author luogongquan
 * @date 2024-10-25
 */
public class OrderReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 站点id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deptId;

    /** 订单id */
    @Excel(name = "订单id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;


    /** 退货理由 */
    @Excel(name = "退货理由")
    private String returnReason;

    /** 退货金额 */
    @Excel(name = "退货金额")
    private BigDecimal returnAmount;

    /** 退货人姓名 */
    @Excel(name = "退货人姓名")
    private String returnName;

    /** 退货人电话 */
    @Excel(name = "退货人电话")
    private String returnPhone;

    /** 退货状态（1=审核中 ，2=拒绝退款 ，3=确认退款，4=已退款） */
    @Excel(name = "退货状态", readConverterExp = "1==审核中,，=2=拒绝退款,，=3=确认退款，4=已退款")
    private String status;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handleMan;

    /** 快递追踪号 */
    @Excel(name = "快递追踪号")
    private Integer trackingNumber;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiverName;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String receiverPhone;

    /** 收货人省 */

    private String receiverProvince;

    /** 收货人市 */

    private String receiverCity;

    /** 收货人区 */

    private String receiverRegion;
    /** 省 */
    @Excel(name = "收货人省")
    private String receiverProvinceName;

    /** 市 */
    @Excel(name = "收货人市")
    private String receiverCityName;

    /** 区 */
    @Excel(name = "收货人区")
    private String receiverRegionName;


    /** 收货地址 */
    @Excel(name = "收货地址")
    private String receiverAddress;

    /** 接收时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "接收时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date receiverTime;

    /** 是否删除( 0:未删除，2：已删除) */
    private String delFlag;

    /** 拒绝理由 */
    @Excel(name = "拒绝理由")
    private String rejectReason;

    /** 处理时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getReceiverProvinceName() {
        return receiverProvinceName;
    }

    public void setReceiverProvinceName(String receiverProvinceName) {
        this.receiverProvinceName = receiverProvinceName;
    }

    public String getReceiverCityName() {
        return receiverCityName;
    }

    public void setReceiverCityName(String receiverCityName) {
        this.receiverCityName = receiverCityName;
    }

    public String getReceiverRegionName() {
        return receiverRegionName;
    }

    public void setReceiverRegionName(String receiverRegionName) {
        this.receiverRegionName = receiverRegionName;
    }

    public Date getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setReturnReason(String returnReason)
    {
        this.returnReason = returnReason;
    }

    public String getReturnReason() 
    {
        return returnReason;
    }
    public void setReturnAmount(BigDecimal returnAmount) 
    {
        this.returnAmount = returnAmount;
    }

    public BigDecimal getReturnAmount() 
    {
        return returnAmount;
    }
    public void setReturnName(String returnName) 
    {
        this.returnName = returnName;
    }

    public String getReturnName() 
    {
        return returnName;
    }
    public void setReturnPhone(String returnPhone) 
    {
        this.returnPhone = returnPhone;
    }

    public String getReturnPhone() 
    {
        return returnPhone;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setHandleMan(String handleMan) 
    {
        this.handleMan = handleMan;
    }

    public String getHandleMan() 
    {
        return handleMan;
    }
    public void setTrackingNumber(Integer trackingNumber) 
    {
        this.trackingNumber = trackingNumber;
    }

    public Integer getTrackingNumber() 
    {
        return trackingNumber;
    }
    public void setReceiverName(String receiverName) 
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName() 
    {
        return receiverName;
    }
    public void setReceiverPhone(String receiverPhone) 
    {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiverPhone() 
    {
        return receiverPhone;
    }
    public void setReceiverProvince(String receiverProvince) 
    {
        this.receiverProvince = receiverProvince;
    }

    public String getReceiverProvince() 
    {
        return receiverProvince;
    }
    public void setReceiverCity(String receiverCity) 
    {
        this.receiverCity = receiverCity;
    }

    public String getReceiverCity() 
    {
        return receiverCity;
    }
    public void setReceiverRegion(String receiverRegion) 
    {
        this.receiverRegion = receiverRegion;
    }

    public String getReceiverRegion() 
    {
        return receiverRegion;
    }
    public void setReceiverAddress(String receiverAddress) 
    {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverAddress() 
    {
        return receiverAddress;
    }
    public void setReceiverTime(Date receiverTime) 
    {
        this.receiverTime = receiverTime;
    }

    public Date getReceiverTime() 
    {
        return receiverTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("returnReason", getReturnReason())
            .append("returnAmount", getReturnAmount())
            .append("returnName", getReturnName())
            .append("returnPhone", getReturnPhone())
            .append("status", getStatus())
            .append("handleMan", getHandleMan())
            .append("trackingNumber", getTrackingNumber())
            .append("receiverName", getReceiverName())
            .append("receiverPhone", getReceiverPhone())
            .append("receiverProvince", getReceiverProvince())
            .append("receiverCity", getReceiverCity())
            .append("receiverRegion", getReceiverRegion())
            .append("receiverAddress", getReceiverAddress())
            .append("receiverTime", getReceiverTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("rejectReason", getRejectReason())
            .toString();
    }
}
